import { store } from "@/pinia";

export const loadConfig = async (url: string) => {
  const config = await fetch(url).then((response) => response.json());
  const { viewConfigStore } = store();
  viewConfigStore.set(config);
};
